package com.shan;

import java.util.Scanner;

/**
 * @Author: ShanYuqing
 * @Version: v1.0
 */
public class MySwitch {
    public static void main(String[] args) {
switchTest();
    }
    //需求：键盘录入一个整数，根据录入的数值，程序打印出相应的日期

    public static  void  switchTest(){
        Scanner sc=new Scanner(System.in);
        System.out.println("输入数字：");
        int choice = sc.nextInt();
        switch(choice){
            case 1:
                System.out.println("今天是星期一");
                break;
            case 2:
                System.out.println("今天是星期二");
                break;
            case 3:
                System.out.println("今天是星期三");
                break;
            case 4:
                System.out.println("今天是星期四");
                break;
            case 5:
                System.out.println("今天是星期五");
                break;
            case 6:
                System.out.println("今天是星期六");
                break;
            case 7:
                System.out.println("今天是星期日");
                break;
            default:
                System.out.println("输入有误");
                break;
        }
    }
}
